﻿using GrainManage.Web.Resources;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace GrainManage.Web.Models.Contact
{
    public class UpdateContactModel : AddContactModel
    {
        [Required(ErrorMessageResourceType = typeof(ContactResx), ErrorMessageResourceName = "ContactIDRequired")]
        [Range(0, int.MaxValue, ErrorMessageResourceType = typeof(ContactResx), ErrorMessageResourceName = "ContactIDRanged")]
        [Display(ResourceType = typeof(ContactResx), Name = "ContactID")]
        public int ContactID { get; set; }
    }
}